/*
 * @Date: 2023-11-16 15:30:08
 * @LastEditors: 春贰
 * @gitee: https://gitee.com/chun22222222
 * @github: https://github.com/chun222
 * @Desc:
 * @LastEditTime: 2023-11-16 15:41:35
 * @FilePath: \go-ezcode-admin\system\model\RequestModel\main.go
 */
package RequestModel

import (
	"time"

	"go-ezcode-admin/system/model/CommonModel"
)

type Login struct {
	Loginname string `json:"loginname"`                // 用户名
	Password  string `json:"password" `                // 密码
	Photo     string `json:"photo"`                    // 人脸识别
	Kick      uint   `json:"kick"  binding:"required"` //99：强制登录,1：已经登录需要询问，0：直接可以登录
	LoginType uint   `json:"login_type"`               //1表示mes用户登陆，2表示域账户登陆
}

type LoginLog struct {
	CommonModel.PageInfo
	UserId    uint        `json:"user_id" search:"="` // 主键ID
	LoginName string      `json:"login_name" search:"like"`
	UserName  string      `json:"user_name"  search:"like"`
	Status    int         `json:"status" search:"="`
	Msg       string      `json:"msg" search:"like"`
	Ip        string      `json:"ip"  search:"like"`
	Login     []time.Time `json:"login" search:"btw"`
	Logout    []time.Time `json:"logout" search:"btw"`
	LoginWay  uint        `json:"login_way" search:"="`
	CreatedAt []time.Time `json:"create_time" search:"btw"` // 创建时间
}
